#ifndef SUBSETDAO_H
#define SUBSETDAO_H
#include <list>
#include "subset.h"
using namespace std;
struct Subset_result
{
    int sid;
    int device_id;
    int ift;
    char subset_ip[16];
    char subset_mask[16];
    char connType;
    int create_time;
    int update_time;
    int px;
    int py;
} ;
class SubSetDao
{
public:
    SubSetDao();
    list<SubSet *> getSubSet();
    list<SubSet *> getSubSetByDeviceId(int deviceId);
    SubSet *getSubSetByIp(QString ip);
    bool updateSubset(SubSet ss);
};

#endif // SUBSETDAO_H
